Creating Search Plugins
Creating Search Plugins
The format for the XML search plugins is pretty straightforward. I would make them in Property List Editor just because it is easier to get the encoding all correct. Note: Only the first capture is taken and used from the regular expressions.
- Root
- author - A name to attach to this plugin. Might be in a preference pane.
- description - The regular that captures the description.
- extras
- %nameOfToken - Go nuts. Any regular expression you put here will be used to fill in the token used for the key.
- name - The pretty name to put in the menu and probably in a pref pane.
- postURL - What goes after the search term in the url.
- preURL - What goes before the search term in the url.
- title - The regular expression that captures the title.
- url - The regular expression that captures the url
- version - The current version of the plugin. Should be important latter on when I implement an autoupdate type thing.
It doesn't really matter what order you put those in. Please make your regular expressions fast.